import request from "@/utils/request"

// 获取待审核咨询师列表
export function getPendingCounselors(params: {
  status?: string
  current: number
  size: number
}) {
  return request({
    url: '/counselor/review/list',
    method: 'get',
    params
  })
}

// 审核咨询师认证
export function reviewCounselor(data: {
  id: number
  status: string  // 'PENDING' | 'APPROVED' | 'REJECTED'
  reviewNote?: string
}) {
  return request({
    url: `/counselor/review/${data.id}`,
    method: 'post',
    params: {
      status: data.status.toUpperCase(),
      reviewNote: data.reviewNote
    }
  })
} 